package com.hsxshop.util;

import com.hsxshop.model.Pagination;

import java.util.Map;

/**
 * Created by wangchongya on 17/6/28.
 */
public class PaginationTool {

    public static Pagination getPagination(Map map){
        Pagination pagination=new Pagination();

        Integer pageIndex=(Integer) map.get("pageIndex");
        pagination.setPageIndex(pageIndex);
        return pagination;
    }

}
